<?php



class UserMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.UserMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(UserPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(UserPeer::TABLE_NAME);
		$tMap->setPhpName('User');
		$tMap->setClassname('User');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'INTEGER', true, null);

		$tMap->addColumn('USERNAME', 'Username', 'VARCHAR', false, 25);

		$tMap->addColumn('FILE', 'File', 'VARCHAR', true, 100);

		$tMap->addColumn('EMAIL', 'Email', 'VARCHAR', false, 100);

		$tMap->addColumn('SALT', 'Salt', 'VARCHAR', false, 32);

		$tMap->addColumn('PASSWORD', 'Password', 'VARCHAR', false, 40);

		$tMap->addColumn('REMEMBER', 'Remember', 'VARCHAR', false, 40);

		$tMap->addColumn('URL', 'Url', 'VARCHAR', false, 255);

		$tMap->addColumn('CREDENTIAL', 'Credential', 'VARCHAR', false, 40);

		$tMap->addColumn('VISIBLE', 'Visible', 'INTEGER', true, null);

	} 
} 